﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CallSatusUC.ascx.cs" Inherits="CallSatusUC" %>
<%@ Register src="DatePickerUC.ascx" tagname="DatePickerUC" tagprefix="uc" %>
<%@ Register src="WaterMarkedTextBox.ascx" tagname="WaterMarkedTextBox" tagprefix="uc" %>
<asp:Panel ID="pnlCallStatus" runat="server">
  <table >
    <tr>    
      <td>
        <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" EnableViewState="true"
          onselectedindexchanged="ddlStatus_SelectedIndexChanged"></asp:DropDownList><label class="error">*</label>
          <asp:RequiredFieldValidator ID="reqDdlStatus" runat="server" ControlToValidate="ddlStatus"
              EnableClientScript="true" Display="Static" InitialValue="0" SetFocusOnError="true" 
              CssClass="error" Text="Req" ErrorMessage="Req" ></asp:RequiredFieldValidator>
      </td>
    </tr>
    <tr>    
      <td>
        <asp:MultiView ID="mvwStatus" runat="server">        
          <asp:View ID="vwStatusCommit" runat="server">
            <uc:DatePickerUC ID="UCdpScheduledDate" ISRequired="true" WatermarkText="Commit Date" runat="server" />                    
          </asp:View>
          <asp:View ID="vwStatusAssigned" runat="server">
            <asp:DropDownList ID="ddlInstaller" runat="server"></asp:DropDownList><label class="error">*</label>
            <asp:RequiredFieldValidator ID="reqDdlInstaller" runat="server" ControlToValidate="ddlInstaller" 
              EnableClientScript="true" Display="Static" InitialValue="0" SetFocusOnError="true" 
              CssClass="error" Text="Req" ErrorMessage="Req"></asp:RequiredFieldValidator>            
          </asp:View>
          <asp:View ID="vwStatusCompleted" runat="server">
            <uc:DatePickerUC ID="UCdpCompletionDate" Enabled="false" ISRequired="false" Visible="false" runat="server" />
            <div style="width:300px;">
              <uc:WaterMarkedTextBox ID="txtInstallerCommisionCR" runat="server" Caption="Inst Cmsn CR."  /> 
              <uc:WaterMarkedTextBox ID="txtInstallerMaterialCR" runat="server" Caption="Inst Mtrl CR."  />
              <uc:WaterMarkedTextBox ID="txtInstallerAcDR" runat="server" Caption="Inst DR."  />
              <uc:WaterMarkedTextBox ID="txtDealerAcDR" runat="server" Caption="Dealer DR."  /> 
              <uc:WaterMarkedTextBox ID="txtDealerAcCR" runat="server" Caption="Dealer CR."  />
              <asp:CheckBox ID="chkIsTempClosed" runat="server" Text="Temp Close" />
            </div>        
          </asp:View>          
        </asp:MultiView>
      </td>
    
    </tr>
  </table>
</asp:Panel>


